﻿using System.Collections.Generic;
using BusinessLayer.FindArtInfo.Entities;

namespace BackEnd.Common
{
    public class Constants
    {
        public sealed class Status
        {
            public const int ACTIVE = 1;
            public const int DEACTIVE = 0;
            public static string GetStringStatus(int status)
            {
                if (status == ACTIVE)
                {
                    return "Active";
                }
                else if (status == DEACTIVE)
                {
                    return "Deactive";
                }

                return "Unknown";
            }
            public static List<CommonStatus> GetListStatus()
            {
                var lst = new List<CommonStatus>();
                lst.Add(new CommonStatus { ID=1, Title="Active"});
                lst.Add(new CommonStatus { ID = 0, Title = "Deactive" });
                return lst;
            }
        }
        
        public sealed class MarketingCategories
        {
            public const string DISCOUNT = "Discount";
            public const string COUPON = "Coupon";
        }

        public sealed class AdminActions
        {
            public const string CreatMarketing = "CreatMarketing";
            public const string ViewMarketings = "ViewMarketings";
            public const string CreateSubscription = "CreateSubscription";
            public const string UpdateSubscription = "UpdateSubscription";
            public const string DeleteSubscription = "DeleteSubscription";
            public const string ViewSubscriptions = "ViewSubscriptions";
            public const string UpdateMarketing = "UpdateMarketing";
            public const string DeleteMarketing = "DeleteMarketing";
            public const string CreateAdminUser = "CreateAdminUser";
            public const string UpdateAdminUser = "UpdateAdminUser";
            public const string DeleteAdminUser = "DeleteAdminUser";
            public const string ViewAdminUsers = "ViewAdminUsers";
            public const string CreateAdminUserGroup = "CreateAdminUserGroup";
            public const string UpdateAdminUserGroup = "UpdateAdminUserGroup";
            public const string DeleteAdminUserGroup = "DeleteAdminUserGroup";
            public const string ViewAdminUserGroups = "ViewAdminUserGroups";
            public const string CreateAdminAction = "CreateAdminAction";
            public const string UpdateAdminAction = "UpdateAdminAction";
            public const string DeleteAdminAction = "DeleteAdminAction";
            public const string ViewAdminActions = "ViewAdminActions";
            public const string CreateAdminActionGroup = "CreateAdminActionGroup";
            public const string UpdateAdminActionGroup = "UpdateAdminActionGroup";
            public const string DeleteAdminActionGroup = "DeleteAdminActionGroup";
            public const string ViewAdminActionGroups = "ViewAdminActionGroups";
            public const string CreateAdminMenu = "CreateAdminMenu";
            public const string UpdateAdminMenu = "UpdateAdminMenu";
            public const string DeleteAdminMenu = "DeleteAdminMenu";
            public const string ViewAdminMenu = "ViewAdminMenu";
            public const string ViewLogs = "ViewLogs";
            public const string CreatePrivileges = "CreatePrivileges";
            public const string ViewPrivileges = "ViewPrivileges";
            public const string ResetPasswordAdminUser = "ResetPasswordAdminUser";
            
            public const string CreateMetaHeader = "CreateMetaHeader";
            public const string UpdateMetaHeader = "UpdateMetaHeader";
            public const string DeleteMetaHeader = "DeleteMetaHeader";
            public const string ViewMetaHeader = "ViewMetaHeader";

            public const string CreateArtist = "CreateArtist";
            public const string UpdateArtist = "UpdateArtist";
            public const string DeleteArtist = "DeleteArtist";
            public const string ViewArtist = "ViewArtist";

            public const string CreateSlideShow = "CreateSlideShow";
            public const string CreateImageWhatWeDo = "CreateImageWhatWeDo";

            public const string ListContents = "ListContents";
            public const string CreateContents = "CreateContents";
            public const string EditContents = "EditContents";
            public const string DeleteContents = "DeleteContents";

            public const string ListContentType = "ListContentType";
            public const string CreateContentType = "CreateContentType";
            public const string EditContentType = "EditContentType";
            public const string DeleteContentType = "DeleteContentType";

            public const string ListMenu = "ListMenu";
            public const string CreateMenu = "CreateMenu";
            public const string EditMenu = "EditMenu";
            public const string DeleteMenu = "DeleteMenu";

            public const string ListAdvertise = "ListAdvertise";
            public const string CreateAdvertise = "CreateAdvertise";
            public const string EditAdvertise = "EditAdvertise";
            public const string DeleteAdvertise = "DeleteAdvertise";

            public const string ListImageLastProject = "ListImageLastProject";
            public const string CreateImageLastProject = "CreateImageLastProject";
            public const string EditImageLastProject = "EditImageLastProject";
            public const string DeleteImageLastProject = "DeleteImageLastProject";

            public const string ListPrice = "ListPrice";
            public const string ListPriceByArtist = "ListPriceByArtist";
            public const string CreatePrice = "CreatePrice";
            public const string EditPrice = "EditPrice";
            public const string DeletePrice = "DeletePrice";

            public const string ListItemType = "ListItemType";
            public const string CreateItemType = "CreateItemType";
            public const string EditItemType = "EditItemType";
            public const string DeleteItemType = "DeleteItemType";

            public const string ListAuctionHouse = "ListAuctionHouse";
            public const string CreateAuctionHouse = "CreateAuctionHouse";
            public const string EditAuctionHouse = "EditAuctionHouse";
            public const string DeleteAuctionHouse = "DeleteAuctionHouse";

            public const string ListAuctionHouseSublocation = "ListAuctionHouseSublocation";
            public const string CreateAuctionHouseSublocation = "CreateAuctionHouseSublocation";
            public const string EditAuctionHouseSublocation = "EditAuctionHouseSublocation";
            public const string DeleteAuctionHouseSublocation = "DeleteAuctionHouseSublocation";

            public const string ListCountry = "ListCountry";
            public const string CreateCountry = "CreateCountry";
            public const string EditCountry = "EditCountry";
            public const string DeleteCountry = "DeleteCountry";

            public const string ListCurrency = "ListCurrency";
            public const string CreateCurrency = "CreateCurrency";
            public const string EditCurrency = "EditCurrency";
            public const string DeleteCurrency = "DeleteCurrency";

            public const string ReportAccount = "ReportAccount";
            public const string ReportLoginLog = "ReportLoginLog";
            public const string ReportTransactionLog = "ReportTransactionLog";

            public const string EditAccount = "EditAccount";
            public const string DeleteAccount = "DeleteAccount";
            public const string DeleteTransactionLog = "DeleteTransactionLog";

        }
        public sealed class OtherActions
        {
            public const string LogIn = "LogIn";
            public const string ChangePassword = "ChangePassword";
            

        }
        public sealed class AdminMenu
        {

        }
        public sealed class SessionKeys
        {
            public const string UserInfo = "UserInfo";
            public const string PermissionActions = "ListAction";
            public const string ArtistTotalRecordSearch = "ArtistTotalRecordSearch";
        }
        /// <summary>
        /// Hold warning message
        /// </summary>
        public sealed class WarningMesages
        {
            public const string NOT_LOGON = "You have no privilege for this action";
           

        }

    }
}